import java.util.Scanner;


public class IntegerFormat {

  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    MyInteger number = new MyInteger(scanner.nextInt());
    System.out.print(number.toString());
  }

}

class MyInteger {

  private int b;
  private int s;
  private int g;

  public MyInteger(int number) {
    this.b = number / 100;
    this.s = (number - this.b * 100) / 10;
    this.g = number % 10;
  }

  public String toString() {
    StringBuilder builder = new StringBuilder();
    while (this.b-- != 0) { builder.append("B"); }
    while (this.s-- != 0) { builder.append("S"); }
    for (int i = 1; i <= this.g; i++) {
      builder.append(i + "");
    }

    return builder.toString();
  }
}
